package com.hq.bootdemo.controller;

import com.hq.bootdemo.entity.UserEntity;
import com.hq.bootdemo.service.UserService;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

@RestController
public class UserController {
    @Resource
    UserService userService;
    @PostMapping("/login")
        public boolean login(UserEntity userEntity, HttpSession session){
            return userService.login(userEntity,session);
        }

}


